﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<FrasesSimpsonsMvc.Models.Temporadas>" %>
<%@ Import Namespace="FrasesSimpsonsMvc.Views" %>

<asp:Content ID="Head" ContentPlaceHolderID="HeadContent" runat="server">
	<% Html.RenderPartial("BasicHeadUserControl"); %>
</asp:Content>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">Temporada <%= Html.Encode(Model.Numero) %></asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="server">
	<% Html.RenderPartial("SearchCleanUserControl"); %>

	<div class="row-responsive">
		<ul class="breadcrumb">
			<li>
				<a href="<%= Url.Action("Index", "Home") %>">Home</a> <span class="divider">/</span>
			</li>
			<li>
				<a href="<%= Url.Action("Index", "Temporada") %>">Todas las temporadas</a> <span class="divider">/</span>
			</li>
			<li class="active"><span class="label label-success tall">Temporada <%= Html.Encode(Model.Numero) %></span></li>
		</ul>
	</div>

	<div class="row-responsive well">
		<h3>Temporada <%= Model.Numero %></h3>
		<span class="stars"><%= Model.Puntaje%></span>
		<h5 class="top-space-mini"><%= Model.Descripcion %></h5>
		<p class="top-space">
			<a class="btn" target="_blank" href="<%= Model.WikipediaIngles %>"><i class="icon-globe"></i> Wikipedia en Ingles</a>
			<a class="btn" target="_blank" href="<%= Model.WikipediaCastellano %>"><i class="icon-globe"></i> Wikipedia en Castellano</a>
		</p>
	</div>

	<div class="row-responsive">
		<ul class="unstyled">
		<% foreach (var capitulo in Model.Capitulos) {%>
			<li><span class="label label-inverse tall"><a class="label-link" href="<%= Url.Action("Detail", "Capitulo", new { Id = capitulo.Id}) %>">Capítulo <%= capitulo.Numero %></a></span>&nbsp;<span class="label label-inverse tall"><a class="label-link" href="<%= Url.Action("Detail", "Capitulo", new { Id = capitulo.Id}) %>"><%= capitulo.Nombre %></a></span></li>
		<% } %>
		</ul>
	</div>

	<div class="row-responsive">
		<fb:comments href="<%= FrasesSimpsonsMvc.Models.Settings.SitePublicUrl %><%= Url.Action("Detail", "Temporada", new { Id = Model.Id }) %>" numposts="10" width="425" publish_feed="false"></fb:comments>
	</div>

</asp:Content>

